<?php

class StarView
{
    public $modx;

    public function __construct($modx, $a, $id)
    {
        $this->modx = $modx;
        $this->link = "index.php?a={$a}&id={$id}";
    }

    public function render($file)
    {
        ob_start();
        include STARGB_PATH . "views/{$file}";
        return ob_get_clean();
    }
}